const helper = require('../helper');
// const { v4 } = require('uuid');
// const hash = v4();

module.exports = !isDev
  ? {
      // path: helper.resolve(
      //   `./dist${!bgCustomConfig.isTop ? '/' + bgCustomConfig.name : ''}`
      // ),
      publicPath: bgWpConfig.output.publicPath,
      // filename: `${
      //   bgCustomConfig.isTop ? bgCustomConfig.name + '/' : ''
      // }js/app.${hash}.js`,
      path: helper.resolve(`./dist`),
      filename: `${bgCustomConfig.name + '/js/'}[name].[hash].js`,
    }
  : {
      publicPath: bgWpConfig.output.publicPath,
    };
